Entry Modification Screen
fun EntryModificationScreen(modifier: Modifier = Modifier, viewModel: JournalViewModel = hiltViewModel(), id: String? = null, openDrawer: () -> Unit, onNavigateBack: () -> Unit)
Composable for the EntryModification page. It can be used for either creating a new entry or editing an existing one. If no entry ID is provided, the fields will be empty for a new entry. If an ID is provided, the fields will be populated with the data from the existing entry.
Parameters
modifier
Modifier to be applied to the composable.
view Model
The ViewModel providing the UI state.
id
The ID of the journal entry to modify, or null for new entry creation.
open Drawer
A lambda to open the navigation drawer.
on Navigate Back
A lambda to navigate back to the previous screen.